<div class="row">
    <ol class="breadcrumb">
        <li><a href="{:U('Index/index')}"><span class="glyphicon glyphicon-home"></span></a></li>
        <li class="active">咨询新闻设置</li>
    </ol>
</div><!--/.row-->

<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">咨询新闻设置</h1>
    </div>
</div><!--/.row-->
<table data-toggle="table" data-url="tables/data2.json" class="table table-hover">
    <thead>
        <tr>
            <th>标题</th>
            <th>内容</th>
            <th>时间</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    <?php foreach($consultinglist as $k => $v) { ?>
        <tr>
            <td><?php echo $v["title"]; ?></td>
            <td><?php echo $v["content"]; ?></td>
            <td><?php echo $v["time"]; ?></td>
            <td><a href="{:U('Consulting/consultingDel?id='.$v['Id'])}">删除</a></td>
        </tr>
    <?php } ?>
    </tbody>
</table>
<form action="{:U('Consulting/addConsulting')}" method="post" enctype="multipart/form-data">                        
     <div class="form-group">
        <label>标题设置</label>
        <input class="form-control" placeholder="请填写新闻的主标题" name="title" value="<?php echo $indexinfo['title']?>">
    </div>
        <textarea id="editor_id" name="content" style="width:700px;height:300px;resize: none;">
        </textarea><br>
    <button type="submit" class="btn btn-primary">提交</button>
</form>